import React from 'react';
function Son({userInfo,callback}){
	console.log("子组件执行了");
	function changeName(){
		callback("李四");
	}
	return (
	  <div>子组件 {userInfo.name} <button onClick={changeName}>修改名字</button></div>
	)
}
export default React.memo(Son);